package _11FlyWeightDesign;

public class Person {
    private String id;
    private String sex;
    private int age;

    public Person(String id,String sex,int age){
        this.id=id;
        this.sex=sex;
        this.age=age;
    }
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Person{" +
                "id='" + id + '\'' +
                ", sex='" + sex + '\'' +
                ", age=" + age +
                '}';
    }
}
